<form class="form-horizontal" action="<?= current_url() ?>" method="post" id="form-validate" enctype="multipart/form-data">
    <div id="validation" class="row-fluid">
        <div class="span12">
            <div class="box corner-all">
                <div class="box-header grd-white color-silver-dark corner-top">
                    <div class="header-control">
                        <a data-box="collapse"><i class="icofont-caret-up"></i></a>

                    </div>
                    <span><?= lang('label_menu_link_edit') . ' ' . lang('label_menu_link_advertise'); ?></span>
                </div>
                <div class="box-body">

                    <fieldset>
                        <div class="control-group">
                            <label class="control-label" for="advertise"><?= lang('label_adv') ?></label>
                            <div class="controls">
                                <input class="grd-white" name="advertise" id="advertise" type="file" /> <img src="<?= base_url(ADS_PATH.$advertise->image)?>" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="language"><?= lang('label_select_language') ?></label>
                            <div class="controls">
                                <select name="language" id="language">
                                    <?php foreach ($languages as $lan){ ?>
                                    <option value="<?= $lan->code ?>" <?= ($advertise->lang == $lan->code) ? 'selected' : '' ?>><?= $lan->code ?></option>
                                    <?php } ?>
                                </select>
                            </div>
                        </div>
                        <div style="margin: 15px" ></div>
                        
                        <div class="control-group">
                            <div class="controls">
                                <input class="grd-white" name="code" id="url" placeholder="<?= lang('label_url') ?>" value="req" type="hidden" />
                            </div>
                        </div>
                        <div class="form-actions">
                            <button type="submit" class="btn btn-primary"><li class="icon-plus" style="margin-left: 5px"></li><?= lang('label_edit') ?></button>
                            <button type="button" class="btn">Cancel</button>
                        </div>
                    </fieldset>


                </div>
            </div>
        </div>
    </div>
</form>